#!/bin/bash
alias gl="git pull"
alias gcm="git commit -m "
alias gcam="git commit -a -m "
alias gp="git push "
alias gpa="git push --all "
alias gpam="git push --all mine"
alias gb="git branch "
alias gc="git checkout "
alias gs="git status "
alias gaa="git add ."
alias gc="git clone "
alias gsw="git switch "
alias gbc="git bundle create  "
# 拉取所有远程分支
alias glall="git branch -a | grep -v 'remotes/origin/HEAD' | grep 'remotes/origin/' | sed 's/.*remotes\/origin\///g' | xargs -I {} git checkout {}"
# add a new repo
alias gra='git remote add  '
alias grame='git remote add  me'
alias gpme='git push  me'
alias gme='git remote add mine '
alias mkf="touch"
alias lsm="ls -m"
alias gcb="git checkout -b "
alias lst="ls -t"
alias llt="ll -t"
alias npmi="npm i"
alias npmi="npm i -g"
alias mgc="mvn generate-sources"
alias mjar="mvn clean package "
alias mcp="mvn clean package "
alias gitall="git add . && git commit -m 'all'"
alias python="python3"
alias pip="pip3"
alias grep='grep --color=auto'
alias pipi='pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple '
alias m1ms='sudo /usr/local/mysql/support-files/mysql.server start'
alias mysql=/usr/local/mysql/bin/mysql
alias pojie='sudo xattr -r -d com.apple.quarantine '
